package com.java.module.user.domain.dto;

import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.java.common.lang.annotation.FileData;
import com.java.module.user.domain.Feedback.Image;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 意见反馈
 * 
 * @author yilabao
 * @date 2021年4月26日
 */
@ApiModel(value = "意见反馈")
@FileData
public class FeedbackDTO {

    @ApiModelProperty(value = "内容", required = true, position = 1)
    @NotBlank(message = "内容不能为空")
    @Size(min = 10, max = 255)
    private String content;

    @ApiModelProperty(value = "图片", required = false, position = 2)
    @FileData
    private List<Image> pics;

    @ApiModelProperty(value = "姓名", required = false, position = 3)
    private String realname;

    @ApiModelProperty(value = "联系方式", required = false, position = 4)
    private String contactWay;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Image> getPics() {
        return pics;
    }

    public void setPics(List<Image> pics) {
        this.pics = pics;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getContactWay() {
        return contactWay;
    }

    public void setContactWay(String contactWay) {
        this.contactWay = contactWay;
    }

    @Override
    public String toString() {
        return "FeedbackDTO [content=" + content + ", pics=" + pics + ", realname=" + realname + ", contactWay="
                + contactWay + "]";
    }

}